home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
prg_basi
/
n_b-v200.zip
/
NB02
/
DMO
/
MONEY$.DMO
< prev
next >
Wrap
Text File
|
1996-03-11
|
2KB
|
47 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME MONEY$ .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
$INCLUDE "DAS-NB02.INC"
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────────
? "│ SetMoneyMask ( Symbol$, Format?, Decimals? )
? "│ fMoney$ ( Amount!, Digits% )
? "├───────────────────────────────────────────────────────────────────
? "│ SEE: INTRNATS.TXT for a a more detailed explanation.
? "└──────────────────────────────────────────────────────────────────────────
?
Amount! = 1234.46
SetMoneyMask "$", 0, 2
PRINT "USA " + fMoney$( Amount!, 4 )
PRINT
SetMoneyMask "Drx.", 3, 0
MID$( pbvUSINGCHRS, 3, 2 ) = ".," ' EUROPEAN STYLE
PRINT "GREECE " + fMoney$( Amount!, 4 )
PRINT
SetMoneyMask "TL", 4, 2
PRINT "TURKEY " + fMoney$( Amount!, 4 )